package net.wofly.sale.commodity.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 终端商品
 * <ol>
 * 	<li>此商品真正与库存有关。</li>
 * </ol>
 * @author lign
 * @version 1.0
 * @created 05-三月-2018 14:36:07
 */
@Data
@Entity
@Table(name = "sale_commodity_commoditytml")
@ApiModel(description = "终端商品信息实体")
public class CommodityTerminal {

	@Id
	private String commodityTerminalID;
	
	@ApiModelProperty(value = "终端商品类型", required = true)
	private Integer commodityTerminalType;
	
	@ApiModelProperty(value = "商品ID", required = true)
	private String commodityID;
	
	@ApiModelProperty(value = "状态", required = true)
	private Integer status = 1;
	
	@ApiModelProperty(value = "修改时间", required = true)
	private Long modifyDate;
	
	@ApiModelProperty(value = "终端商品名称", required = false)
	private String commodityTerminalName;
	
	@ApiModelProperty(value = "终端商品名称拼音", required = false)
	private String commodityTerminalNamePinYin;
	
	@ApiModelProperty(value = "终端商品编码", required = false)
	private String commodityTerminalCode;
	
	@ApiModelProperty(value = "是否存在此终端商品", required = false)
	private Integer hasCommodityTerminal = 1;
	
	@Transient
	@ApiModelProperty(value = "商品信息", required = false)
	private Commodity commodity;
	
	@Transient
	@ApiModelProperty(value = "终端商品类型名称", required = true)
	private String commodityTerminalTypeStr;
	
	/**
	 * 配置关系缺失提示信息（后台用）
	 */
	@Transient
	private String configWarnMsg;

	public CommodityTerminal(){

	}
}